<?php

// Admin News routes
$controller = "news";
$router->addRoute('admin',
     new Zend_Controller_Router_Route('admin', array('module' => 'default', 'controller' => $controller, 'action' => 'adminlist'))
);

$router->addRoute('adminNews',
     new Zend_Controller_Router_Route('admin/news', array('module' => 'default', 'controller' => $controller, 'action' => 'adminlist'))
);

$router->addRoute('adminNewForm',
     new Zend_Controller_Router_Route('admin/news/form/:newId', array('module' => 'default', 'controller' => $controller, 'action' => 'adminform'))
);

$router->addRoute('adminNewDelete',
     new Zend_Controller_Router_Route('admin/news/delete/:newId', array('module' => 'default', 'controller' => $controller, 'action' => 'admindelete'))
);


// Admin Solutions routes
$module = "solutions";
$router->addRoute('adminSolutions',
     new Zend_Controller_Router_Route('/admin/solutions', array('module' => $module, 'controller' => 'index', 'action' => 'adminlist'))
);

$router->addRoute('adminSolutionForm',
     new Zend_Controller_Router_Route('/admin/solutions/form/:solutionId', array('module' => $module, 'controller' => 'index', 'action' => 'adminform'))
);

$router->addRoute('adminSolutionDelete',
     new Zend_Controller_Router_Route('/admin/solutions/delete/:solutionId', array('module' => $module, 'controller' => 'index', 'action' => 'admindelete'))
);


// Admin Products routes
$module = "products";
$router->addRoute('adminProducts',
     new Zend_Controller_Router_Route('/admin/products', array('module' => $module, 'controller' => 'index', 'action' => 'adminlist'))
);

$router->addRoute('adminProductForm',
     new Zend_Controller_Router_Route('/admin/products/form/:productId', array('module' => $module, 'controller' => 'index', 'action' => 'adminform'))
);

$router->addRoute('adminProductDelete',
     new Zend_Controller_Router_Route('/admin/products/delete/:productId', array('module' => $module, 'controller' => 'index', 'action' => 'admindelete'))
);


// Admin Designs routes
$module = "designs";
$router->addRoute('adminDesigns',
     new Zend_Controller_Router_Route('admin/designs', array('module' => $module, 'controller' => 'index', 'action' => 'adminlist'))
);

$router->addRoute('adminDesignForm',
     new Zend_Controller_Router_Route('admin/designs/form/:designId', array('module' => $module, 'controller' => 'index', 'action' => 'adminform'))
);

$router->addRoute('adminDesignDelete',
     new Zend_Controller_Router_Route('admin/designs/delete/:designId', array('module' => $module, 'controller' => 'index', 'action' => 'admindelete'))
);


// Admin Towns routes
$module = "towns";
$router->addRoute('adminTowns',
     new Zend_Controller_Router_Route('admin/towns', array('module' => $module, 'controller' => 'index', 'action' => 'adminlist'))
);

$router->addRoute('adminTownForm',
     new Zend_Controller_Router_Route('admin/towns/form/:townId', array('module' => $module, 'controller' => 'index', 'action' => 'adminform'))
);

$router->addRoute('adminTownDelete',
     new Zend_Controller_Router_Route('admin/towns/delete/:townId', array('module' => $module, 'controller' => 'index', 'action' => 'admindelete'))
);


// Admin Services routes
$module = "services";
$router->addRoute('adminServices',
     new Zend_Controller_Router_Route('admin/services', array('module' => $module, 'controller' => 'index', 'action' => 'adminlist'))
);

$router->addRoute('adminServiceForm',
     new Zend_Controller_Router_Route('admin/services/form/:serviceId', array('module' => $module, 'controller' => 'index', 'action' => 'adminform'))
);

$router->addRoute('adminServiceDelete',
     new Zend_Controller_Router_Route('admin/services/delete/:serviceId', array('module' => $module, 'controller' => 'index', 'action' => 'admindelete'))
);

// Admin Users routes
$module = "users";
$router->addRoute('adminUsers',
     new Zend_Controller_Router_Route('admin/users', array('module' => $module, 'controller' => 'index', 'action' => 'adminlist'))
);

$router->addRoute('adminUserForm',
     new Zend_Controller_Router_Route('admin/users/form/:userId', array('module' => $module, 'controller' => 'index', 'action' => 'adminform'))
);

$router->addRoute('adminUserDelete',
     new Zend_Controller_Router_Route('admin/users/delete/:userId', array('module' => $module, 'controller' => 'index', 'action' => 'admindelete'))
);

$router->addRoute('adminLogin',
     new Zend_Controller_Router_Route('admin/login', array('module' => 'static', 'controller' => 'index', 'action' => 'adminlogin'))
);

$router->addRoute('adminLogout',
     new Zend_Controller_Router_Route('admin/logout', array('module' => 'static', 'controller' => 'index', 'action' => 'adminlogout'))
);
